/*
 * @Author       : 吕成
 * @Date         : 2020-12-07 15:17:04
 * @LastEditors  : your name
 * @LastEditTime : 2020-12-08 22:41:25
 * @Description  : file content
 */
// eslint-disable-next-line
import { UserLayout, BasicLayout, BlankLayout } from '@/layouts'
import { bxAnaalyse } from '@/core/icons'

export const asyncRouterMap = [

  {
    path: '/',
    name: 'index',
    component: BasicLayout,
    meta: { title: 'menu.home' },
    redirect: '/',
    children: [
      {
        path: '/',
        name: 'project',
        component: () => import('@/views/project/project'),
        meta: { title: 'menu.project.project', keepAlive: false, icon: bxAnaalyse }
      },
      {
        path: '/project_1',
        name: 'project_1',
        component: () => import('@/views/project/project'),
        meta: { title: 'menu.project.project_1', keepAlive: false, icon: bxAnaalyse }
      },
      {
        path: '/project_2',
        name: 'project_2',
        component: () => import('@/views/project/project'),
        meta: { title: 'menu.project.project_2', keepAlive: false, icon: bxAnaalyse }
      },
      {
        path: '/project_3',
        name: 'project_3',
        component: () => import('@/views/project/project'),
        meta: { title: 'menu.project.project_3', keepAlive: false, icon: bxAnaalyse }
      },
      {
        path: '/project_4',
        name: 'project_4',
        component: () => import('@/views/project/project'),
        meta: { title: 'menu.project.project_4', keepAlive: false, icon: bxAnaalyse }
      },
      {
        path: '/project_5',
        name: 'project_5',
        component: () => import('@/views/project/project'),
        meta: { title: 'menu.project.project_5', keepAlive: false, icon: bxAnaalyse }
      }
    ]
  },
  {
    path: '*', redirect: '/404', hidden: true
  }
]

/**
 * 基础路由
 * @type { *[] }
 */
export const constantRouterMap = [
  {
    path: '/user',
    component: UserLayout,
    redirect: '/user/login',
    hidden: true,
    children: [
      {
        path: 'login',
        name: 'login',
        component: () => import(/* webpackChunkName: "user" */ '@/views/user/Login')
      },
      {
        path: 'register',
        name: 'register',
        component: () => import(/* webpackChunkName: "user" */ '@/views/user/Register')
      },
      {
        path: 'register-result',
        name: 'registerResult',
        component: () => import(/* webpackChunkName: "user" */ '@/views/user/RegisterResult')
      },
      {
        path: 'recover',
        name: 'recover',
        component: undefined
      }
    ]
  },

  {
    path: '/404',
    component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/404')
  }

]
